package com.tqjc.plccontrol.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.tqjc.plccontrol.entity.ConnectInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @projectName: BaotouSteel
 * @className: ConnectInfoMapper
 * @author: Patienyon
 * @description: PLC连接服务Mapper
 * @date: 2023/6/13 10:04
 */
@Mapper
@DS("baotou")
public interface ConnectInfoMapper  extends BaseMapper<ConnectInfo> {
    /**
     * 分页查询指定行数据
     *
     * @param page 分页参数
     * @param wrapper 动态查询条件
     * @return 分页对象列表
     */
    IPage<ConnectInfo> selectByPage(IPage<ConnectInfo> page , @Param(Constants.WRAPPER) Wrapper<ConnectInfo> wrapper);
}
